<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %>
<% Exception exception = (Exception)request.getAttribute("exception"); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@page import="java.io.StringWriter"%>
<%@page import="java.io.PrintWriter"%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet" href="style/global.css" type="text/css" />
<script language="JavaScript" type="text/javascript" src="javascript/global.js"></script>
<script language="JavaScript" type="text/javascript" src="javascript/error.js"></script>
<script type=""></script>
<title>Quiz Manager - Error</title>
</head>
<body>
<h2>Oops!</h2>
<%=exception.toString() %>
<a id="viewStackTrace" href="">Show Stack Trace</a>
<noscript>This page needs JavaScript</noscript>
<pre id="stackTrace">
<% 
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
exception.printStackTrace(pw);
out.print(sw);
sw.close();
pw.close();
%>
</pre>
<a href="index.html">Return to Quiz Selection</a>
</body>
</html>